package gugu.domain;

import java.util.Calendar;

import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection="USER")
public class User {
	@Id
	private String id;
	private String userName;
	@Indexed
	private String contactEmail;
	private AccountTypeEnum accountType;
	private Calendar registerTime;
	private UserType type;
	
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getCantactEmail() {
		return contactEmail;
	}
	public void setContactEmail(String contactEmail) {
		this.contactEmail = contactEmail;
	}
	public AccountTypeEnum getAccountType() {
		return accountType;
	}
	public void setAccountType(AccountTypeEnum accountType) {
		this.accountType = accountType;
	}
	public Calendar getRegisterTime() {
		return registerTime;
	}
	public void setRegisterTime(Calendar registerTime) {
		this.registerTime = registerTime;
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public UserType getType() {
		return type;
	}
	public void setType(UserType type) {
		this.type = type;
	}
	public String getContactEmail() {
		return contactEmail;
	}
	
	public static enum UserType{
		ACTIVE,INACTIVE
	}
}
